package com.bjtech.dao.ibatis;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.ssi.dao.impl.BaseDaoSqlMapImpl;

import com.bjtech.dao.UserConsultReplyDao;
import com.bjtech.domain.UserConsultReply;

/**
 * @author wf
 *
 */
@Repository(value="userConsultReplyDao")
public class SqlMapUserConsultReplyDao extends BaseDaoSqlMapImpl<UserConsultReply> implements
		UserConsultReplyDao {

	public List<UserConsultReply> selectRelyListByInfoId(Long id) {
		List list = super.getSqlMapClientTemplate().queryForList("selectRelyListByInfoId",id);
		return list;
	}

	public void deleteUserConsultReplyByInfoId(Long infoId) {
		super.getSqlMapClientTemplate().delete("deleteUserConsultReplyByInfoId", infoId);
	}

}
